Optimal. Leaf size=104 \[ -\frac {F_1\left (\frac {1}{2};-n,2;\frac {3}{2};\frac {d (1-\sin (e+f x))}{c+d},\frac {1}{2} (1-\sin (e+f x))\right ) \cos (e+f x) (c+d \sin (e+f x))^n \left (\frac {c+d \sin (e+f x)}{c+d}\right )^{-n}}{2 a f \sqrt {a+a \sin (e+f x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.12, antiderivative size = 130, normalized size of antiderivative = 1.25, number of steps
used = 3, number of rules used = 3, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.111, Rules used = {2867, 142, 141}
\begin {gather*} \frac {d \cos (e+f x) \sqrt {\frac {d (1-\sin (e+f x))}{c+d}} (c+d \sin (e+f x))^{n+1} F_1\left (n+1;\frac {1}{2},2;n+2;\frac {c+d \sin (e+f x)}{c+d},\frac {c+d \sin (e+f x)}{c-d}\right )}{f (n+1) (c-d)^2 (a-a \sin (e+f x)) \sqrt {a \sin (e+f x)+a}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 141
Rule 142
Rule 2867
Rubi steps
\begin {align*} \int \frac {(c+d \sin (e+f x))^n}{(a+a \sin (e+f x))^{3/2}} \, dx &=\frac {\left (a^2 \cos (e+f x)\right ) \text {Subst}\left (\int \frac {(c+d x)^n}{\sqrt {a-a x} (a+a x)^2} \, dx,x,\sin (e+f x)\right )}{f \sqrt {a-a \sin (e+f x)} \sqrt {a+a \sin (e+f x)}}\\ &=\frac {\left (a^2 \cos (e+f x) \sqrt {\frac {d (a-a \sin (e+f x))}{a c+a d}}\right ) \text {Subst}\left (\int \frac {(c+d x)^n}{(a+a x)^2 \sqrt {\frac {a d}{a c+a d}-\frac {a d x}{a c+a d}}} \, dx,x,\sin (e+f x)\right )}{f (a-a \sin (e+f x)) \sqrt {a+a \sin (e+f x)}}\\ &=\frac {d F_1\left (1+n;\frac {1}{2},2;2+n;\frac {c+d \sin (e+f x)}{c+d},\frac {c+d \sin (e+f x)}{c-d}\right ) \cos (e+f x) \sqrt {\frac {d (1-\sin (e+f x))}{c+d}} (c+d \sin (e+f x))^{1+n}}{(c-d)^2 f (1+n) (a-a \sin (e+f x)) \sqrt {a+a \sin (e+f x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(319\) vs. \(2(104)=208\).
time = 4.59, size = 319, normalized size = 3.07 \begin {gather*} \frac {\sec (e+f x) (c+d \sin (e+f x))^n \left (a^2 F_1\left (1;\frac {1}{2},-n;2;\frac {1}{2} (1+\sin (e+f x)),\frac {d (1+\sin (e+f x))}{-c+d}\right ) \sqrt {2-2 \sin (e+f x)} (1+\sin (e+f x))^2 \left (\frac {c+d \sin (e+f x)}{c-d}\right )^{-n}-\frac {4 a (1+\sin (e+f x)) \sqrt {1-\frac {2}{1+\sin (e+f x)}} \left (2 a (1+2 n) F_1\left (\frac {1}{2}-n;-\frac {1}{2},-n;\frac {3}{2}-n;\frac {2}{1+\sin (e+f x)},\frac {-c+d}{d+d \sin (e+f x)}\right )+a (-1+2 n) F_1\left (-\frac {1}{2}-n;-\frac {1}{2},-n;\frac {1}{2}-n;\frac {2}{1+\sin (e+f x)},\frac {-c+d}{d+d \sin (e+f x)}\right ) (1+\sin (e+f x))\right ) \left (1+\frac {c-d}{d+d \sin (e+f x)}\right )^{-n}}{-1+4 n^2}\right )}{8 a^3 f \sqrt {a (1+\sin (e+f x))}} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.07, size = 0, normalized size = 0.00 \[\int \frac {\left (c +d \sin \left (f x +e \right )\right )^{n}}{\left (a +a \sin \left (f x +e \right )\right )^{\frac {3}{2}}}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (c + d \sin {\left (e + f x \right )}\right )^{n}}{\left (a \left (\sin {\left (e + f x \right )} + 1\right )\right )^{\frac {3}{2}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {{\left (c+d\,\sin \left (e+f\,x\right )\right )}^n}{{\left (a+a\,\sin \left (e+f\,x\right )\right )}^{3/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________